function MisConsultasNewCtrl($scope) {


    $scope.valor = 'testeando';

    $scope.init = function () {
        //servicioData.initMisConsultas($scope.returnInitMisConsultas);
        $scope.nuevaConsulta();
    }
    
    
    $scope.onloadNewConsulta = function () {
    alert('load');
        $scope.nuevaConsulta();
    }
  
    $scope.nuevaConsulta = function () {
    alert('load2');
        //$scope.consultaSelec = pConsulta;
        //$scope.buscarConsultasDet(pConsulta.id);
                
        //$scope.consultasDet = [];
        //$scope.consultaSelec = null;
       /* $('.modal').css( {
            heigth : '500px', width : '800px', 'margin-left' : function () {
                return  - ($(this).width() / 2);
            }
        });*/

       /* $('#popHistorialConsulta').modal( {
            backdrop : false
        });
        $('#popHistorialConsulta').modal('show');*/

      //99  $scope.activarUpload();
        $(".cleditor").cleditor( {
            width : 750, // width not including margins, borders or padding
            height : 140, // height not including margins, borders or padding
            controls : // controls to add to the toolbar
            "bold italic underline | font size " + "| color highlight removeformat | outdent " + "indent | alignleft center alignright justify | "          
        });
         $("#divEditor").contents().find('#txtConsulta').cleditor().focus(); 
        //99$scope.nuevaConsultaPop();-
         $("#divEditor").contents().find('#txtConsulta').cleditor()[0].clear(); //99
    }

  
    //$scope.init();

}